import request from '@/utils/request-data'

// 1：箱体良品率 2：瓶装良品率
export function getLp(status) {
  return request({
    url: '/lp',
    method: 'get',
    params: { status }
  })
}

export function getDevice(data) {
  return request({
    url: '/device',
    method: 'get',
    params: data
  })
}

export function addDevice(data) {
  return request({
    url: '/addDevice',
    method: 'post',
    data
  })
}

export function saveDevice(data) {
  return request({
    url: '/saveDevice',
    method: 'post',
    data
  })
}

// status   1：标签 2：喷码 3：箱体 4：外观  page: 1
export function getBj(data) {
  return request({
    url: '/bj',
    method: 'get',
    params: data
  })
}

// status   1:瓶盖 2：液体
export function getPg(data) {
  return request({
    url: '/pg',
    method: 'get',
    params: data
  })
}
